From: Don Slutz Date: Tue, 16 Jun 2015 10:29:59 +0000 (+0200) Subject: hvmloader: properly parenthesize pci_write* macros X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3086^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5cd431f343aba8dc10949cf807a354577f8ee93a;p=xen.git hvmloader: properly parenthesize pci_write* macros Signed-off-by: Don Slutz --- diff --git a/tools/firmware/hvmloader/util.h b/tools/firmware/hvmloader/util.h index a70e4aa42b..f99c0f19a8 100644 --- a/tools/firmware/hvmloader/util.h +++ b/tools/firmware/hvmloader/util.h @@ -82,9 +82,9 @@ uint32_t pci_read(uint32_t devfn, uint32_t reg, uint32_t len); #define pci_readw(devfn, reg) ((uint16_t)pci_read(devfn, reg, 2)) #define pci_readl(devfn, reg) ((uint32_t)pci_read(devfn, reg, 4)) void pci_write(uint32_t devfn, uint32_t reg, uint32_t len, uint32_t val); -#define pci_writeb(devfn, reg, val) (pci_write(devfn, reg, 1, (uint8_t) val)) -#define pci_writew(devfn, reg, val) (pci_write(devfn, reg, 2, (uint16_t)val)) -#define pci_writel(devfn, reg, val) (pci_write(devfn, reg, 4, (uint32_t)val)) +#define pci_writeb(devfn, reg, val) pci_write(devfn, reg, 1, (uint8_t) (val)) +#define pci_writew(devfn, reg, val) pci_write(devfn, reg, 2, (uint16_t)(val)) +#define pci_writel(devfn, reg, val) pci_write(devfn, reg, 4, (uint32_t)(val)) /* Get a pointer to the shared-info page */ struct shared_info *get_shared_info(void) __attribute__ ((const));